package com.syys.privacy.util;

import java.util.Map;
import java.util.function.Function;

/**
 * @author Administrator
 * @Classname ParagraphDesc
 * @Description 段落描述
 * @Date 2021/7/19 19:43
 */
public class ParagraphDesc {

    /**
     * 段落类型
     */
    private ParagraphType paragraphType = ParagraphType.CONTENT;

    /**
     * 序号组
     */
    private String serialNumGroup = "default";

    /**
     * 序号级别
     */
    private boolean convertChar = false;

    /**
     * 段落内容
     */
    private String content = "";

    /**
     * 首行缩进
     */
    private float firstLineIndent = 20f;

    /**
     * 字体大小
     */
    private float fontSize = 10.5f;

    /**
     * 字体
     */
    private String fontName = "宋体";

    /**
     * 替换标识
     */
    private String replace = "";

    /**
     * 是否加粗
     */
    private boolean isBold = false;

    /**
     * 替换内容
     */
    Function<Object, Map<String,Object>> function;

    /**
     * 关联字段 类名+字段 确定唯一
     */
    private String uniqueFiled;

    /**
     * 排序字段
     */
    private int sortNum;

    /**
     * 加粗内容
     */
    private String[] boldContent;

    public ParagraphType getParagraphType() {
        return paragraphType;
    }

    public void setParagraphType(ParagraphType paragraphType) {
        this.paragraphType = paragraphType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public float getFirstLineIndent() {
        return firstLineIndent;
    }

    public void setFirstLineIndent(float firstLineIndent) {
        this.firstLineIndent = firstLineIndent;
    }

    public float getFontSize() {
        return fontSize;
    }

    public void setFontSize(float fontSize) {
        this.fontSize = fontSize;
    }

    public String getFontName() {
        return fontName;
    }

    public void setFontName(String fontName) {
        this.fontName = fontName;
    }

    public String getReplace() {
        return replace;
    }

    public void setReplace(String replace) {
        this.replace = replace;
    }

    public boolean isBold() {
        return isBold;
    }

    public void setBold(boolean bold) {
        isBold = bold;
    }

    public Function getFunction() {
        return function;
    }

    public void setFunction(Function function) {
        this.function = function;
    }

    public String getUniqueFiled() {
        return uniqueFiled;
    }

    public void setUniqueFiled(String uniqueFiled) {
        this.uniqueFiled = uniqueFiled;
    }

    public int getSortNum() {
        return sortNum;
    }

    public void setSortNum(int sortNum) {
        this.sortNum = sortNum;
    }


    public boolean isConvertChar() {
        return convertChar;
    }

    public void setConvertChar(boolean convertChar) {
        this.convertChar = convertChar;
    }

    public String getSerialNumGroup() {
        return serialNumGroup;
    }

    public void setSerialNumGroup(String serialNumGroup) {
        this.serialNumGroup = serialNumGroup;
    }

    public String[] getBoldContent() {
        return boldContent;
    }

    public void setBoldContent(String[] boldContent) {
        this.boldContent = boldContent;
    }
}
